﻿<Window x:Class="DTC.Popups.ConfirmationPopup"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Подтверждение" AllowsTransparency="True" Height="236" Width="350"
        Background="{x:Null}" SnapsToDevicePixels="True" WindowStyle="None">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/ButtonsStyles.xaml"/>
                <ResourceDictionary Source="../Resources/Brushes.xaml"/>
                <ResourceDictionary Source="../Resources/BorderStyles.xaml"/>
                <ResourceDictionary Source="../Resources/ToolTipStyles.xaml"/>
                <ResourceDictionary Source="../Resources/TreeViewStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Border Style="{StaticResource PopupBorder}" Margin="5">
    	<Border.Background>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FFFF5858" Offset="1"/>
    			<GradientStop Color="#FFFD7373" Offset="0"/>
    			<GradientStop Color="#FFBC0303" Offset="0.413"/>
    			<GradientStop Color="#FFE71C1C" Offset="0.783"/>
    		</LinearGradientBrush>
    	</Border.Background>
        <Grid Style="{StaticResource PopupGridStyle}" Margin="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Style="{StaticResource PopupColumnStyle}"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Style="{StaticResource PopupTopRowStyle}"/>
                <RowDefinition Style="{StaticResource PopupMiddleRowStyle}"/>
                <RowDefinition Style="{StaticResource PopupBottomRowStyle}"/>
            </Grid.RowDefinitions>
            <Grid MouseLeftButtonDown="StackPanel_MouseLeftButtonDown" Margin="0" HorizontalAlignment="Stretch" Background="#01000000">
                <TextBlock x:Name="TitleBar" Grid.Column="1" Width="Auto" FontWeight="Bold" HorizontalAlignment="Center" Background="Transparent"/>
            </Grid>
            <Border BorderThickness="1" Grid.Row="1" Margin="5" CornerRadius="6" 
                    Background="White" BorderBrush="{StaticResource WindowsContentBorderBrush}">
                <TextBlock Name="MessageContainer" FontSize="14"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center" Text="Сообщение о ошибке" FontFamily="Global Sans Serif"
                           TextWrapping="Wrap"/>
            </Border>
            <Grid Grid.Row="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.5*"/>
                    <ColumnDefinition Width="0.5*"/>
                </Grid.ColumnDefinitions>
                <Button x:Name="AcceptBtn" Style="{StaticResource AcceptButton}" 
                        Grid.Column="0" Height="Auto" Click="ReturnButton_Click"
                        Margin="5,0,5,10" Padding="5"
                        HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                    <TextBlock Text="Да" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Button>
                <Button x:Name="CancelBtn" Style="{StaticResource CancelButton}" 
                        Grid.Column="1" Height="Auto" Click="CloseButton_Click" 
                        HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,0,5,10" Padding="5">
                    <TextBlock Text="Нет" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </Button>
            </Grid>
        </Grid>
    </Border>
</Window>
